#!/usr/bin/env python
# To build the intermediate lexicon to which the accent specific rules will apply, get_exceptions
# makes a list of each accents exceptional entries.  These lists will then be used in 
# get_inter_lex to replace the basic entries where needed.

import exceptions_dicts
import dicts






def get_guk_exceptions():
    """ Uses bewteen exceptions_dicts.py and towns.py, build
        and return guk_exceptions as a list"""
    region = exceptions_dicts.REGION['southern_england']
    local = exceptions_dicts.LOCAL['general_uk']
    guk_exceptions = region + local
    return guk_exceptions

def get_edi_exceptions():
    """ Uses bewteen exceptions_dicts.py and towns.py, build
        and return edi_exceptions as a list"""
    region = exceptions_dicts.REGION['scotland']
    local = exceptions_dicts.LOCAL['general_uk']
    edi_exceptions = region + local
    return edi_exceptions

def get_lds_exceptions():
    """ Uses bewteen exceptions_dicts.py and towns.py, build
        and return lds_exceptions as a list"""
    region = exceptions_dicts.REGION['northern_england']
    local = exceptions_dicts.LOCAL['leeds']
    lds_exceptions = region + local
    return lds_exceptions

def get_lds1_exceptions():
    """ Uses bewteen exceptions_dicts.py and towns.py, build
        and return lds1_exceptions as a list"""
    region = exceptions_dicts.REGION['northern_england']
    local = exceptions_dicts.LOCAL['leeds']
    lds1_exceptions = region + local
    return lds1_exceptions

def get_cdf_exceptions():
    """ Uses bewteen exceptions_dicts.py and towns.py, build
        and return cdf_exceptions as a list"""
    region = exceptions_dicts.REGION['wales']
    local = exceptions_dicts.LOCAL['cardiff']
    cdf_exceptions = region + local
    return cdf_exceptions

def get_abc_exceptions():
    """ Uses bewteen exceptions_dicts.py and towns.py, build
        and return abc_exceptions as a list"""
    abc_exceptions = exceptions_dicts.REGION['wales']
    return abc_exceptions

def get_abd1_exceptions():
    """ Uses bewteen exceptions_dicts.py and towns.py, build
        and return abd1_exceptions as a list"""
    abd1_exceptions = exceptions_dicts.REGION['scotland']
    return abd1_exceptions

def get_nyc_exceptions():
    """ Uses bewteen exceptions_dicts.py and towns.py, build
        and return nyc_exceptions as a list"""
    country = exceptions_dicts.COUNTRY['US']
    local = exceptions_dicts.LOCAL['new_york']
    nyc_exceptions = country + local
    return nyc_exceptions

def get_nyc1_exceptions():
    """ Uses bewteen exceptions_dicts.py and towns.py, build
        and return nyc1_exceptions as a list"""
    country = exceptions_dicts.COUNTRY['US']
    local = exceptions_dicts.LOCAL['new_york']
    nyc1_exceptions = country + local
    return nyc1_exceptions

def get_gam_exceptions():
    """ Uses bewteen exceptions_dicts.py and towns.py, build
        and return gam_exceptions as a list"""
    gam_exceptions = exceptions_dicts.COUNTRY['US']
    return gam_exceptions

def get_sca_exceptions():
    """ Uses bewteen exceptions_dicts.py and towns.py, build
        and return sca_exceptions as a list"""
    country = exceptions_dicts.COUNTRY['US']
    region = exceptions_dicts.REGION['southern_us']
    sca_exceptions = country + region
    return sca_exceptions

def get_gau_exceptions():
    """ Uses bewteen exceptions_dicts.py and towns.py, build
        and return gau_exceptions as a list"""
    gau_exceptions = exceptions_dicts.COUNTRY['AUS']
    return gau_exceptions



def main():
    guk_exceptions = get_guk_exceptions()
    edi_exceptions = get_edi_exceptions()
    lds_exceptions = get_lds_exceptions()
    lds1_exceptions = get_lds1_exceptions()
    cdf_exceptions = get_cdf_exceptions()
    abc_exceptions = get_abc_exceptions()
    abd1_exceptions = get_abd1_exceptions()
    nyc_exceptions = get_nyc_exceptions()
    nyc1_exceptions = get_nyc1_exceptions()
    gam_exceptions = get_gam_exceptions()
    sca_exceptions = get_sca_exceptions()
    """ccl1 has no exceptions"""
    gau_exceptions = get_gau_exceptions()
    """gnz has no exceptions"""

    
    

if __name__ == 'main':
    main()    

    

   
   

